Ext.define('HIT.view.ReportUserDefinePanel', {
    extend: 'Ext.form.Panel',
    alias: 'widget.reportuserdefinepanel',
//自定义报表
    height:280,
    width:500,
    overlapHeader: false,
    preventHeader: true,
    layout: {
        type: 'absolute'
    },
  
    
    initComponent: function() {
        var me = this;
        
        Ext.applyIf(me, {      
        	dockedItems: [
        	                {
        	                    xtype: 'treepanel',
        	                    id : 'user-defined-tree',
        	                    dock: 'left',
        	                    margin: '0 0 0 30',
        	                    width: 180,
        	                    title: Share.T('模板列表'),
        	                    store: 'ReportUserDefined',
        	                    closable: false,
        	                    collapsed: false,
        	                    collapsible: false,
        	                    rootVisible: true,
        	                    viewConfig: {
        	                    }
        	                }
        	            ],
           items: [//总体框
					{
					    xtype: 'fieldset',
					    x:20,
					    y:10,
					    height: 260,
					    width: 480,
					    id:'user-defined-field'  
					},
 		            {
						xtype: 'button',
                     	text :Share.T('确定'),
                     	x:350,
                     	y:240,
                        width: 65,
 		                id :'report-user-defined-yes'
 		             },
 		             {
 		            	xtype: 'button',
                        text :Share.T('清空'),
                        x:430,
                        y:240,
                        width: 65,
 		                handler: function() {		                        	 
 		                    this.up('form').getForm().reset();
 		                }
 		             }
 		           ]
 		                                                                                                            
         });
        me.callParent(arguments);
        
        
    }

});